package com.daoos.swagger;

import javax.servlet.http.Cookie;

import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType;

public abstract class ASnippet implements ISnippet {

	@Override
	public void setHttpMethod(String httpMethod) {
		this.httpMethod = httpMethod;
	}

	@Override
	public String getHttpMethod() {
		return httpMethod;
	}

	@Override
	public void setMediaType(String mediaType) {
		this.mediaType = MediaType.valueOf(mediaType);
	}

	@Override
	public MediaType getMediaType() {
		return mediaType;
	}

	@Override
	public void setURL(String url) {
		this.url = url;
	}

	@Override
	public String getURL() {
		return url;
	}

	@Override
	public HttpHeaders getHeaders() {
		return new HttpHeaders();
	}

	@Override
	public String getContent() {
		return null;
	}

	@Override
	public Cookie[] getCookie() {
		return new Cookie[0];
	}

	String httpMethod;
	MediaType mediaType;
	String url;

}